
from http import server
import socket
import concurrent.futures

server="159.75.230.92"
# server="10.70.0.1"
# server="192.168.217.128"
# port=65535
# port = 81


def scan(port):
	# print(port)
	client = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
	res = client.connect_ex((server,port))
	if res == 0:
		print("port number: "+ str(port))
		client.close()


print("IP"+server)
with concurrent.futures.ThreadPoolExecutor(max_workers=10) as ex:
	for port in range(1,1025):
		ex.submit(scan, port)
